//
//  OrderByNode.h
//  DataCollector
//
//  Created by jiro on 12/06/28.
//  Copyright 2012 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "ClauseNode.h"
#import "ExpressionNode.h"

class OrderByNode : public ClauseNode
{
public:

	OrderByNode( const ExpressionNode& field, bool yesIAsk );

	OrderByNode( NSString* fieldName, bool yesIsAsc );
	
	virtual ~OrderByNode();

	virtual NSString* query() const;

protected:

	bool isAsc;
	
	ExpressionNode* fieldNodes;
};
